package com.dormitory.management.system.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dormitory.management.system.entity.WeekCheck;
import com.dormitory.management.system.req.WeekCheckPageReq;
import com.dormitory.management.system.req.WeekCheckSaveReq;
import com.dormitory.management.system.resp.WeekCheckPageResp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dormitory.managemnet.util.core.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 周例查表 服务类
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
public interface WeekCheckService extends IService<WeekCheck> {
    int scoreToGrade(long roomId, int week, int score);
    IPage<WeekCheckPageResp> getPage(WeekCheckPageReq req);
    Result importWeekCheckByExcel(String username,MultipartFile file) throws IOException;
    boolean save(WeekCheckSaveReq req);
    List<Integer> count(String username);
}

